<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <sx:head />
   	<style type="text/css">
			.buttonC {
				text-align: left
			}
			
			.pagetable {
				font-size: 12px;
			}
			</style>
					<style type="text/css">
			@import "css/rep.css";
			</style>
			<style type="text/css">@import "css/rep.css";</style>
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/rep.js"></script>
	<script type="text/javascript" src="js/repStyle.js"></script>
	<script type="text/javascript" src="js/jquery.tablesorter.min.js"></script>
   </head>
 现金成本列表
  <body>
   <s:form action="CashAction.action" method="post" theme="simple">
   
   	<table class="pagetable">
				<tr>

					<td>
						客户:
						<s:textfield name="queryCrt.fromComName" style="width:70px;" />
					</td>
					
					<td>
						预存金额>=
						<s:textfield name="queryCrt.price" style="width:70px;" />元
					</td>
					
					<td>
						期间开始日期
						<sx:datetimepicker name="queryCrt.startDate" displayFormat="yyyy-MM-dd" />
						
					</td>
					
					<td>
						<s:submit value="查询" method="toGetCashList" onclick='setfistpage()' />
						<input type=button value="导出" onclick=	'Copy2Excel(myTable);'>
					</td>

				</tr>
			</table>
   
    <table id="myTable" class="tablesorter">
				<thead>
   
     <tr >
		         <th>ID </th>         
		         <th>客户</th>		        
		         <th>本次预存金额</th>
		         <th>上次剩余现金</th>
		         <th>本期实际金额</th>
		         <th>本期开始时间</th>
		         <th>本期结束时间</th>
		         <th>从下次借贷现金</th>
		         <th>备注</th>		
		         <th></th>
		         <th></th>         
		        </tr>
		        </thead>
		        
		        <tbody>
       <s:iterator id="list" value="list" >
        <tr>
         <td><s:property  value="id"/> </td>
         <td><s:property  value="comObj.comName"/> </td>
         <td><s:property  value="csum"/> </td>
         <td><s:property  value="ltPreSum"/> </td>
         <td><s:property  value="factSum"/> </td>
         <td><s:date  name="cashDate" format="yyyy-MM-dd"/> </td>
          <td><s:date  name="cashDateEnd" format="yyyy-MM-dd"/> </td>
         <td><s:property  value="bfNextSum"/> </td>
         <td><s:property  value="remark"/> </td>
                   
         <td>
          <a href="CashAction!findbyid.action?id=<s:property value="id"/>">编辑</a>
         </td>
         <td>
         <a href="CashAction!delete.action?id=<s:property value="id"/>">删除</a>
         </td>
        </tr>
       </s:iterator>
       </tbody>
    </table>
    
     <!-----------------------分页部分---------------------------------------->
      
      
		<table width="850" border="0" class="pagetable">
			  	<tr>
			    	<td>　				
								
							当前第<s:property value="page"/> 页,共<s:property value="planNum"/>条记录, 共分<s:property value="totalPage"/>页
					
				<input type="hidden" name="maxNum" value="">
			    	<input type="hidden" name="page" id="page" value="<s:property value="page"/>">
			    		
						<s:submit value="首页" onclick='setfistpage()' method="toGetCashList"></s:submit>	
						<s:if test="page<=1">
						上一页
						</s:if>
						<s:else>
							<s:submit value="上一页" onclick='setlastpage(%{page})' method="toGetCashList"></s:submit>		
							
						</s:else>
								
						<s:if test="page>=totalPage">
						 下一页
						</s:if>
					    <s:else>
						<s:submit value="下一页"  onclick='setnextpage(%{page})' method="toGetCashList"></s:submit>	
				
					    </s:else>
						<s:submit value="尾页" onclick='settaltolpage(%{totalPage})' method="toGetCashList"></s:submit>	
						
						</td>
					
			</table>
        <!-----------------------分页部分---------------------------- -->
    
    </s:form>

  </body>
</html>
